package org.example.enums;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;

import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@Getter
@AllArgsConstructor
public enum TaskEnum {

    PRODUCT_FULL(10001, "商品全量信息", 1, "", 1, "erp_code", 1000, 1440, 1440,
            "select erp_code, product_name, common_name,approval_number, code, manufacturer,medium_package_num,product_unit,spec,dosage_form,term,suggest_price,production_area,available_qyt,monomer_price,chain_price,base_price,oldest_pro_date,new_pro_date,near_effect,far_effect,market_author,drug_classification,manufacturing_license_no from xyy_seller_product_full_info",
            "[{\"comment\":\"产地\",\"erpFieldName\":\"production_area\",\"popFieldName\":\"production_area\"},{\"comment\":\"近效期至\",\"erpFieldName\":\"near_effect\",\"popFieldName\":\"near_effect\"},{\"comment\":\"商品条码\",\"erpFieldName\":\"code\",\"popFieldName\":\"code\"},{\"comment\":\"中包装\",\"erpFieldName\":\"medium_package_num\",\"popFieldName\":\"medium_package_num\"},{\"comment\":\"单体售价，单位:元\",\"erpFieldName\":\"monomer_price\",\"popFieldName\":\"monomer_price\"},{\"comment\":\"商品ERP编码\",\"erpFieldName\":\"erp_code\",\"popFieldName\":\"erp_code\"},{\"comment\":\"商品名称\",\"erpFieldName\":\"product_name\",\"popFieldName\":\"product_name\"},{\"comment\":\"包装单位\",\"erpFieldName\":\"product_unit\",\"popFieldName\":\"product_unit\"},{\"comment\":\"规格\",\"erpFieldName\":\"spec\",\"popFieldName\":\"spec\"},{\"comment\":\"生产厂家\",\"erpFieldName\":\"manufacturer\",\"popFieldName\":\"manufacturer\"},{\"comment\":\"剂型\",\"erpFieldName\":\"dosage_form\",\"popFieldName\":\"dosage_form\"},{\"comment\":\"连锁售价，单位:元\",\"erpFieldName\":\"chain_price\",\"popFieldName\":\"chain_price\"},{\"comment\":\"最新生产日期（格式要求：yyyy-MM-dd）\",\"erpFieldName\":\"new_pro_date\",\"popFieldName\":\"new_pro_date\"},{\"comment\":\"最老生产日期（格式要求：yyyy-MM-dd）\",\"erpFieldName\":\"oldest_pro_date\",\"popFieldName\":\"oldest_pro_date\"},{\"comment\":\"远效期至\",\"erpFieldName\":\"far_effect\",\"popFieldName\":\"far_effect\"},{\"comment\":\"批准文号\",\"erpFieldName\":\"approval_number\",\"popFieldName\":\"approval_number\"},{\"comment\":\"有效期\",\"erpFieldName\":\"term\",\"popFieldName\":\"term\"},{\"comment\":\"通用名称\",\"erpFieldName\":\"common_name\",\"popFieldName\":\"common_name\"},{\"comment\":\"建议零售价，单位:元\",\"erpFieldName\":\"suggest_price\",\"popFieldName\":\"suggest_price\"},{\"comment\":\"库存\",\"erpFieldName\":\"available_qyt\",\"popFieldName\":\"available_qyt\"},{\"comment\":\"商品底价\",\"erpFieldName\":\"base_price\",\"popFieldName\":\"base_price\"},{\"comment\":\"上市许可持有人\",\"erpFieldName\":\"market_author\",\"popFieldName\":\"market_author\"},{\"comment\":\"处方类型\",\"erpFieldName\":\"drug_classification\",\"popFieldName\":\"drug_classification\"},{\"comment\":\"生产许可证或备案凭证编号\",\"erpFieldName\":\"manufacturing_license_no\",\"popFieldName\":\"manufacturing_license_no\"}]\t"),
    PRODUCT_UPDATE(20001, "商品更新信息", 2, "erp_code", 2, "erp_code", 1000, 360, 180,
            "select erp_code,medium_package_num,product_unit,dosage_form,term,suggest_price,production_area,market_author,piece_loading from xyy_seller_product_info",
            "[{\"comment\":\"产地\",\"erpFieldName\":\"production_area\",\"popFieldName\":\"production_area\"},{\"comment\":\"中包装\",\"erpFieldName\":\"medium_Package_Num\",\"popFieldName\":\"medium_Package_Num\"},{\"comment\":\"有效期\",\"erpFieldName\":\"term\",\"popFieldName\":\"term\"},{\"comment\":\"建议零售价\",\"erpFieldName\":\"suggest_price\",\"popFieldName\":\"suggest_price\"},{\"comment\":\"包装单位\",\"erpFieldName\":\"product_unit\",\"popFieldName\":\"product_unit\"},{\"comment\":\"商品ERP编码\",\"erpFieldName\":\"erp_code\",\"popFieldName\":\"erp_code\"},{\"comment\":\"剂型\",\"erpFieldName\":\"dosage_form\",\"popFieldName\":\"dosage_form\"},{\"comment\":\"上市许可持有人\",\"erpFieldName\":\"market_author\",\"popFieldName\":\"market_author\"},{\"comment\":\"件装量\",\"erpFieldName\":\"piece_loading\",\"popFieldName\":\"piece_loading\"}]\t"),
    PRODUCT_STOCK(30001, "商品库存", 3, "erp_code", 2, "erp_code", 1000, 1, 1,
            "select erp_code,oldest_pro_date,new_pro_date,near_effect,far_effect,available_qyt from xyy_seller_product_stock",
            "[{\"comment\":\"最新生产日期（格式要求：yyyy-MM-dd）\",\"erpFieldName\":\"new_pro_date\",\"popFieldName\":\"new_pro_date\"},{\"comment\":\"最老生产日期（格式要求：yyyy-MM-dd）\",\"erpFieldName\":\"oldest_pro_date\",\"popFieldName\":\"oldest_pro_date\"},{\"comment\":\"远效期至（格式要求：yyyy-MM-dd）\",\"erpFieldName\":\"far_effect\",\"popFieldName\":\"far_effect\"},{\"comment\":\"库存，商品所有批号的可售库存累计之和\",\"erpFieldName\":\"available_qyt\",\"popFieldName\":\"available_qyt\"},{\"comment\":\"近效期至（格式要求：yyyy-MM-dd）\",\"erpFieldName\":\"near_effect\",\"popFieldName\":\"near_effect\"},{\"comment\":\"商品ERP编码\",\"erpFieldName\":\"erp_code\",\"popFieldName\":\"erp_code\"}]\t"),
    PRODUCT_PRICE(40001, "商品价格", 4, "erp_code", 2, "erp_code", 1000, 1, 1,
            "select erp_code, monomer_price, chain_price, base_price from xyy_seller_product_price",
            "[{\"comment\":\"单体售价，单位:元\",\"erpFieldName\":\"monomer_price\",\"popFieldName\":\"monomer_price\"},{\"comment\":\"连锁售价，单位:元\",\"erpFieldName\":\"chain_price\",\"popFieldName\":\"chain_price\"},{\"comment\":\"商品ERP编码\",\"erpFieldName\":\"erp_code\",\"popFieldName\":\"erp_code\"},{\"comment\":\"商品底价\",\"erpFieldName\":\"base_price\",\"popFieldName\":\"base_price\"}]\t"),
    ORDER_DELIVERY_WMS(70001, "出库单物流", 7, "order_no", 2, "order_no", 1000, 30, 5,
            "select order_no, logi_no, logi_company,delivery_id from xyy_seller_order_deliver_info",
            "[{\"comment\":\"商城订单号\",\"erpFieldName\":\"order_no\",\"popFieldName\":\"order_no\"},{\"comment\":\"物流公司名称\",\"erpFieldName\":\"logi_company\",\"popFieldName\":\"logi_company\"},{\"comment\":\"快递单号（商家自配可以直接取order_id的值）\",\"erpFieldName\":\"delivery_id\",\"popFieldName\":\"delivery_id\"},{\"comment\":\"物流公司编号\",\"erpFieldName\":\"logi_no\",\"popFieldName\":\"logi_no\"}]\t"),
    ORDER_DELIVERY_DETAILE(80001, "出库单明细", 8, "order_no", 2, "order_no", 1000, 20, 5,
            "select order_no,order_detail_id,erp_code,product_name,batch_code,batch_num_decimal,batch_valid_date,production_date,batch_price from xyy_seller_order_deliver_detail",
            "[{\"comment\":\"商城订单号\",\"erpFieldName\":\"order_no\",\"popFieldName\":\"order_no\"},{\"comment\":\"订单明细ID\",\"erpFieldName\":\"order_detail_id\",\"popFieldName\":\"order_detail_id\"},{\"comment\":\"批号有效期（格式要求：yyyy-MM-dd）\",\"erpFieldName\":\"batch_valid_date\",\"popFieldName\":\"batch_valid_date\"},{\"comment\":\"批号生产日期（格式要求：yyyy-MM-dd）\",\"erpFieldName\":\"production_date\",\"popFieldName\":\"production_date\"},{\"comment\":\"商品ERP编码\",\"erpFieldName\":\"erp_code\",\"popFieldName\":\"erp_code\"},{\"comment\":\"商品批号\",\"erpFieldName\":\"batch_code\",\"popFieldName\":\"batch_code\"},{\"comment\":\"批号发货数量\",\"erpFieldName\":\"batch_num_decimal\",\"popFieldName\":\"batch_num_decimal\"},{\"comment\":\"商品名称\",\"erpFieldName\":\"product_name\",\"popFieldName\":\"product_name\"},{\"comment\":\"批号价格\",\"erpFieldName\":\"batch_price\",\"popFieldName\":\"batch_price\"}]\t"),
    CLIENT_INFO(90001, "客户信息", 9, "", 0, "customer_id", 1000, 10, 10,
            "select customer_id,customer_code,customer_name,province_id,province_name,city_id,city_name,country_id,country_name from xyy_seller_consumer_info",
            "[{\"comment\":\"市名称\",\"erpFieldName\":\"city_name\",\"popFieldName\":\"city_name\"},{\"comment\":\"省ID\",\"erpFieldName\":\"province_id\",\"popFieldName\":\"province_id\"},{\"comment\":\"县区名称\",\"erpFieldName\":\"country_name\",\"popFieldName\":\"country_name\"},{\"comment\":\"客户名称\",\"erpFieldName\":\"customer_name\",\"popFieldName\":\"customer_name\"},{\"comment\":\"客户ID\",\"erpFieldName\":\"customer_id\",\"popFieldName\":\"customer_id\"},{\"comment\":\"客户编号\",\"erpFieldName\":\"customer_code\",\"popFieldName\":\"customer_code\"},{\"comment\":\"县/区ID\",\"erpFieldName\":\"country_id\",\"popFieldName\":\"country_id\"},{\"comment\":\"省名称\",\"erpFieldName\":\"province_name\",\"popFieldName\":\"province_name\"},{\"comment\":\"市ID\",\"erpFieldName\":\"city_id\",\"popFieldName\":\"city_id\"}]\t"),
    INVOICE_RETURN(130001, "电子发票回传", 13, "order_no", 2, "order_no", 1000, 60, 30,
            "select order_no,order_invoice_url from xyy_seller_order_invoice_url",
            "[{\"comment\":\"订单号\",\"erpFieldName\":\"order_no\",\"popFieldName\":\"order_no\"},{\"comment\":\"电子发票URL链接，需要保证客户能够在公网访问下载。多个链接用英文“,”隔开\",\"erpFieldName\":\"order_invoice_url\",\"popFieldName\":\"order_invoice_url\"}]\t"),
    ORDER_COMPLETE(150001, "订单分拣", 15, "order_no", 2, "order_no", 1000, 5, 5,
            "select * from xyy_seller_order_complete",
            "[{\"comment\":\"商城订单号\",\"erpFieldName\":\"order_no\",\"popFieldName\":\"order_no\"}]\t"),
    CLIENT_CHANGE(190001, "平台客户信息变更", 19, "", 0, "", 1000, 10, 10,
            "INSERT INTO xyy_seller_change_info (org_id,merchant_id,customer_code,customer_name,pick_name,pick_phone,province_name,city_name,country_name,pick_address,drug_store_type,type,taxpayer_identity,registered_bank,registered_bank_account,registered_address,registered_phone,permit_number,permit_expire_date,permit_certification_date,business_license_number,business_license_expire_date,business_license_cer_date,food_busitcard_no,food_busitcard_expire_date,food_busitcard_cer_date,class_II_medical_device_no,class_II_medical_expire_date,class_II_medical_cer_date,scope,non_scope,client_expire_date,client_name,client_card_no,client_card_expire_date,legal_person,permit_url,business_license_url,food_busitcard_url,class_II_medical_url,client_url,client_card_url,drug_bus_no,drug_bus_expire_date,drug_bus_cer_date,drug_bus_url,medical_ins_occ_no,medical_ins_occ_expire_date,medical_ins_occ_cer_date,medical_ins_occ_url,customer_status,change_time,change_info_url) VALUES ( ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)\t",
            "[{\"comment\":\"机构编码\",\"erpFieldName\":\"org_id\",\"popFieldName\":\"org_id\"},{\"comment\":\"平台客户内码\",\"erpFieldName\":\"merchant_id\",\"popFieldName\":\"merchant_id\"},{\"comment\":\"平台客户外码\",\"erpFieldName\":\"customer_code\",\"popFieldName\":\"customer_code\"},{\"comment\":\"客户名称\",\"erpFieldName\":\"customer_name\",\"popFieldName\":\"customer_name\"},{\"comment\":\"收货人\",\"erpFieldName\":\"pick_name\",\"popFieldName\":\"pick_name\"},{\"comment\":\"手机号\",\"erpFieldName\":\"pick_phone\",\"popFieldName\":\"pick_phone\"},{\"comment\":\"省名称\",\"erpFieldName\":\"province_name\",\"popFieldName\":\"province_name\"},{\"comment\":\"市名称\",\"erpFieldName\":\"city_name\",\"popFieldName\":\"city_name\"},{\"comment\":\"区县名称\",\"erpFieldName\":\"country_name\",\"popFieldName\":\"country_name\"},{\"comment\":\"收货地址：省市县镇和详细地址\",\"erpFieldName\":\"pick_address\",\"popFieldName\":\"pick_address\"},{\"comment\":\"药店类型: 1、 单体药店； 2、 连锁总部； 3、 连锁直营； 4、 连锁加盟； 5、 诊所； 6、 门诊部； 7、 卫生室； 8、 社区卫生服务站； 9、 卫生院； 10、 其它医疗机构； 11、 药品批发； 12、 非药类经营； 13、 民营医院； 14、 公立医院； 15、 非药类生产； 16、 药品生产； 17、 其他企业； 18、 境外企业 \",\"erpFieldName\":\"drug_store_type\",\"popFieldName\":\"drug_store_type\"},{\"comment\":\"发票类型：1、电子普通发票；2、增值税专用发票；3、纸质普通发票；4、增值税电子专用发票；\",\"erpFieldName\":\"type\",\"popFieldName\":\"type\"},{\"comment\":\"纳税人识别号\",\"erpFieldName\":\"taxpayer_identity\",\"popFieldName\":\"taxpayer_identity\"},{\"comment\":\"开户行\",\"erpFieldName\":\"registered_bank\",\"popFieldName\":\"registered_bank\"},{\"comment\":\"开户行账户\",\"erpFieldName\":\"registered_bank_account\",\"popFieldName\":\"registered_bank_account\"},{\"comment\":\"注册地址\",\"erpFieldName\":\"registered_address\",\"popFieldName\":\"registered_address\"},{\"comment\":\"注册电话\",\"erpFieldName\":\"registered_phone\",\"popFieldName\":\"registered_phone\"},{\"comment\":\"许可证编号（药品经营许可证编号或医疗机构职业许可证编号）\",\"erpFieldName\":\"permit_number\",\"popFieldName\":\"permit_number\"},{\"comment\":\"许可证有效期至（药品经营许可证或医疗机构职业许可证）\",\"erpFieldName\":\"permit_expire_date\",\"popFieldName\":\"permit_expire_date\"},{\"comment\":\"许可证发证日期（药品经营许可证或医疗机构职业许可证）\",\"erpFieldName\":\"permit_certification_date\",\"popFieldName\":\"permit_certification_date\"},{\"comment\":\"营业执照编号\",\"erpFieldName\":\"business_license_number\",\"popFieldName\":\"business_license_number\"},{\"comment\":\"营业执照有效期至\",\"erpFieldName\":\"business_license_expire_date\",\"popFieldName\":\"business_license_expire_date\"},{\"comment\":\"营业执照发证日期\",\"erpFieldName\":\"business_license_cer_date\",\"popFieldName\":\"business_license_cer_date\"},{\"comment\":\"食品经营许可证编号\",\"erpFieldName\":\"food_busitcard_no\",\"popFieldName\":\"food_busitcard_no\"},{\"comment\":\"食品经营许可证有效期至\",\"erpFieldName\":\"food_busitcard_expire_date\",\"popFieldName\":\"food_busitcard_expire_date\"},{\"comment\":\"食品经营许可证发证日期\",\"erpFieldName\":\"food_busitcard_cer_date\",\"popFieldName\":\"food_busitcard_cer_date\"},{\"comment\":\"第二类医疗器械经营备案凭证编号\",\"erpFieldName\":\"class_II_medical_device_no\",\"popFieldName\":\"class_II_medical_device_no\"},{\"comment\":\"第二类医疗器械经营备案凭证有效期至\",\"erpFieldName\":\"class_II_medical_expire_date\",\"popFieldName\":\"class_II_medical_expire_date\"},{\"comment\":\"第二类医疗器械经营备案凭证发证日期\",\"erpFieldName\":\"class_II_medical_cer_date\",\"popFieldName\":\"class_II_medical_cer_date\"},{\"comment\":\"经营范围\",\"erpFieldName\":\"scope\",\"popFieldName\":\"scope\"},{\"comment\":\"不可经营范围\",\"erpFieldName\":\"non_scope\",\"popFieldName\":\"non_scope\"},{\"comment\":\"授权委托书有效期至\",\"erpFieldName\":\"client_expire_date\",\"popFieldName\":\"client_expire_date\"},{\"comment\":\"授权委托人姓名\",\"erpFieldName\":\"client_name\",\"popFieldName\":\"client_name\"},{\"comment\":\"授权委托人身份证号\",\"erpFieldName\":\"client_card_no\",\"popFieldName\":\"client_card_no\"},{\"comment\":\"授权委托人身份证有效期至\",\"erpFieldName\":\"client_card_expire_date\",\"popFieldName\":\"client_card_expire_date\"},{\"comment\":\"法人姓名\",\"erpFieldName\":\"legal_person\",\"popFieldName\":\"legal_person\"},{\"comment\":\"许可证资质地址（药品经营许可证资质地址或医疗机构职业许可证资质）\",\"erpFieldName\":\"permit_url\",\"popFieldName\":\"permit_url\"},{\"comment\":\"营业执照资质地址\",\"erpFieldName\":\"business_license_url\",\"popFieldName\":\"business_license_url\"},{\"comment\":\"食品经营许可证资质地址\",\"erpFieldName\":\"food_busitcard_url\",\"popFieldName\":\"food_busitcard_url\"},{\"comment\":\"第二类医疗器械经营备案凭证资质地址\",\"erpFieldName\":\"class_II_medical_url\",\"popFieldName\":\"class_II_medical_url\"},{\"comment\":\"授权委托书资质地址\",\"erpFieldName\":\"client_url\",\"popFieldName\":\"client_url\"},{\"comment\":\"授权委托人身份证资质地址\",\"erpFieldName\":\"client_card_url\",\"popFieldName\":\"client_card_url\"},{\"comment\":\"客户提取状态:0-未提取 1-已提取\",\"erpFieldName\":\"customer_status\",\"popFieldName\":\"customer_status\"},{\"comment\":\"药品经营许可证编号\",\"erpFieldName\":\"drug_bus_no\",\"popFieldName\":\"drug_bus_no\"},{\"comment\":\"药品经营许可证有效期至\",\"erpFieldName\":\"drug_bus_expire_date\",\"popFieldName\":\"drug_bus_expire_date\"},{\"comment\":\"药品经营许可证发证日期\",\"erpFieldName\":\"drug_bus_cer_date\",\"popFieldName\":\"drug_bus_cer_date\"},{\"comment\":\"药品经营许可证资质地址\",\"erpFieldName\":\"drug_bus_url\",\"popFieldName\":\"drug_bus_url\"},{\"comment\":\"医疗机构职业许可证编号\",\"erpFieldName\":\"medical_ins_occ_no\",\"popFieldName\":\"medical_ins_occ_no\"},{\"comment\":\"医疗机构职业许可证有效期至\",\"erpFieldName\":\"medical_ins_occ_expire_date\",\"popFieldName\":\"medical_ins_occ_expire_date\"},{\"comment\":\"医疗机构职业许可证发证日期\",\"erpFieldName\":\"medical_ins_occ_cer_date\",\"popFieldName\":\"medical_ins_occ_cer_date\"},{\"comment\":\"医疗机构职业许可证资质地址\",\"erpFieldName\":\"medical_ins_occ_url\",\"popFieldName\":\"medical_ins_occ_url\"},{\"comment\":\"客户信息变更时间\",\"erpFieldName\":\"change_time\",\"popFieldName\":\"change_time\"},{\"comment\":\"客户变更的信息url地址\",\"erpFieldName\":\"change_info_url\",\"popFieldName\":\"change_info_url\"}]\t");

    private Integer taskId;
    private String taskName;
    private Integer taskGroup;
    private String queryField;
    private Integer queryParamType;
    private String orderBy;
    private Integer pageSize;
    private Integer interval;
    private Integer minInterval;
    private String taskInfo;
    private String attMapper;

}
